<template>
    <div></div>
</template>

<script>
    import { logout } from '../../../apis/upms';
    export default {
        created() {
            let $this = this;
            logout().finally(() => {
                $this.$store.commit('setAccessToken',null);
                $this.$store.commit('setMeInfo',{});
                $this.$router.push({ name : 'login' }).then();
            });
        }
    };
</script>
